/*
 * CommandTourner.h
 *
 *  Created on: 2 janv. 2012
 *      Author: jeddi
 */

#ifndef COMMANDTOURNER_H_
#define COMMANDTOURNER_H_

#include "Command.h"
#include "CommandRobot.h"
class CommandTourner: public Command, public CommandRobot {

public:
	static CommandTourner maCmd;
	string ancienneDirection;

	CommandTourner(Robot*rob=NULL,string d=(string)"TOURNER") : CommandRobot(rob), Command(d) {
		ancienneDirection = rob->getDirection();
	}

	CommandTourner(string str):Command(str),CommandRobot(){}
	CommandTourner* constVirtual(Robot *rob) {

		return new CommandTourner(rob);
	}
	void executer() {
		string val;
		val= inv.getString();
		//r->tourner((string)("rr"));
	}
	void annuler() {
		//r->tourner((string&)ancienneDirection);
	}

};


#endif /* COMMANDTOURNER_H_ */
